package com.ad_hccm.service.impl.VitalSigns;

import com.ad_hccm.dao.VitalSigns.VitalSignsDao;
import com.ad_hccm.domain.VitalSigns.VitalSigns;
import com.ad_hccm.service.VitalSigns.VitalSignsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 生命体征ServiceImpl
 */
@Service
public class VitalSignsServiceImpl implements VitalSignsService {
    @Autowired
    private VitalSignsDao vitalSignsDao;

    @Override
    public boolean save(VitalSigns vitalSigns) {
        return vitalSignsDao.save(vitalSigns);
    }

    @Override
    public boolean update(VitalSigns vitalSigns) {
        return vitalSignsDao.update(vitalSigns);
    }

    @Override
    public VitalSigns getById(String id) {
        return vitalSignsDao.getById(id);
    }

    @Override
    public List<VitalSigns> getAll() {
        return vitalSignsDao.getAll();
    }
}
